<template>
  <div class="container">
    <h3 class="title">
      {{data.hasTitle?data.title:"热门搜索"}}
    </h3>
    <el-row>
      <el-col :span="12" v-for="(item,index) in data.commonInfos" v-bind:key="index">
        <el-link :href="item.detailUrl">
          <el-image :src="item.cover" fit="cover" class="cover"/>
          <div class="name">{{item.name}}</div>
          <div class="remarks">{{item.remarks}}</div>
        </el-link>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: "Splite2View",
    props: {
      "data": Object
    }
  }
</script>

<style lang="scss">
  @import "assets/Common";

  .title {
    font-size: 16px;
    line-height: 40px;
  }

  .el-link{
    width: 100%;
    display: block;
  }

  .el-row {
    .el-col {
      margin-top: 10px;
    }

    .el-col:nth-child(2n) {
      padding-left: 10px;
    }
  }

  .cover {
    width: 100%;
    height: 250px;
  }

  .name {
    margin-top: 10px;
    color: #333333;
    font-size: 18px;
  }

  .remarks {
    margin-top: 10px;
    color: #666666;
    font-size: 16px;
  }


</style>
